package com.sky.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sky.dto.FoodNameDTO;
import com.sky.dto.HistoryDTO;
import com.sky.dto.SuggestionsDTO;
import com.sky.entity.Food;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface FoodMapper extends BaseMapper<Food> {
     public List<Food> foodList();
     public List<Food> foodListByCategory(Long category);
     public List<Food> foodListByName(FoodNameDTO foodName);

//     List<String> getHistory(Long index);

     void addHistory(HistoryDTO historyDTO);

     List<String> getHistoryById(HistoryDTO historyDTO);

     List<SuggestionsDTO> getSuggestions(SuggestionsDTO suggestionsDTO);


}
